package com.kgc.scd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.kgc.scd.bean.Product;
import com.kgc.scd.bean.ProductXZY;
import com.kgc.scd.mapper.ProductMapper;
import com.kgc.scd.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: com.kgc.scd.service.impl
 * @author: HarryXzy
 * @create: 2022-06-13 13:21
 * @description:
 **/
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired(required = false)
    private ProductMapper productMapper;

    @Override
    public List<ProductXZY> getAllProduct() {
        //QueryWrapper<Product> queryWrapper = new QueryWrapper<>();
        //queryWrapper.select("pro_id","pro_name","pro_price","pro_pic","pro_categoryid");//指定查询某字段
        return productMapper.selectAllProductList();
    }
}
